package com.ruyipu.forum.activity;

import org.json.JSONObject;

import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;

import com.ruyipu.forum.R;

public class Start extends BaseActivity {
	
	/** Called when the activity is first created. */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		setContentView(R.layout.main);
		super.onCreate(savedInstanceState);
		enter(null);
	}

	/**
	 * 用户点击界面进入事件
	 * 
	 * @param v
	 */
	public void enter(View v) {
		Intent i = new Intent();
		i.setClassName(this, AllDiscussions.NAME);
		startActivity(i);
		overridePendingTransition(R.anim.fade, R.anim.hold);
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		switch (event.getKeyCode()) {
		case KeyEvent.KEYCODE_BACK:
			//RFApplication.exitRF();
			finish();
			overridePendingTransition(R.anim.show, R.anim.hide);
		case KeyEvent.KEYCODE_MENU:
			break;
		}
		return false;
	}

	@Override
	protected void makeWidget() {
	}

	@Override
	protected void initWidget() {
	}

	@Override
	protected void updateData(JSONObject jsonObject) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected void loadLocalData() {
		// TODO Auto-generated method stub
		
	}
}